package demo2;

public class Test {
    public static void main(String[] args) {
        MyArraylist myArraylist = new MyArraylist();
        System.out.println(myArraylist.isFull());
        myArraylist.add(11);
        myArraylist.add(12);
        myArraylist.display();
        myArraylist.add(2,13);
        myArraylist.add(2,14);
        myArraylist.display();

        myArraylist.remove(14);
        myArraylist.display();

        System.out.println(myArraylist.contains(13));
        System.out.println(myArraylist.contains(14));
        System.out.println(myArraylist.indexOf(13));
        System.out.println(myArraylist.indexOf(14));

        System.out.println(myArraylist.get(2));
        System.out.println(myArraylist.get(4));
    }
}
